package com.user.controller;

import com.cloud.domain.TbUser;
import com.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @author: yu.tan
 * @date: 2020/10/12 22:27
 * @Description:
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/test")
    public TbUser test() {
        return userService.findOne();
    }

    @GetMapping("/test_a")
    public TbUser testA() {
        return userService.testA();
    }
}
